﻿import QtQuick 2.15
import QtQuick.Controls 2.15
/*
  高级设置界面  (中间界面)
*/

Item {
    id:backGround
    width: screenWidth
    height: 1600

    Rectangle{
        anchors.fill: backGround
        color: "#00BFFF"
        border.width: 5
        border.color: "#F0F8FF"
    }

    onVisibleChanged: {
        if(visible === true)
        {
            Cpp_Connect.pageNumber = 13
        }
    }

    Rectangle{          // 伺服参数设置界面 - 切换按钮
        anchors.horizontalCenter: backGround.horizontalCenter
        anchors.top: parent.top
        anchors.topMargin: 100
        width: 400
        height: 120
        radius: 10
        border.width: 1
        border.color: "#F0F8FF"
        color: "#ff7f50"

        Text{
            anchors.centerIn: parent
            font.pixelSize: 50
            font.bold: true
            text:qsTr("伺服参数设置")
        }

        MouseArea{
            anchors.fill: parent

            onPressed: {
                parent.color = "#ffff00"
            }

            onReleased: {
                parent.color = "#ff7f50"
                advanceSettingWindow.visible = false
                servoParameterSetting.visible = true
            }
        }
    }

    Rectangle{          // 托料设置界面 - 切换按钮
        anchors.horizontalCenter: backGround.horizontalCenter
        anchors.top: parent.top
        anchors.topMargin: 400
        width: 400
        height: 120
        radius: 10
        border.width: 1
        border.color: "#F0F8FF"
        color: "#ff7f50"
        visible: Cpp_Connect.TLJ_Exist

        Text{
            anchors.centerIn: parent
            font.pixelSize: 50
            font.bold: true
            text:qsTr("托料参数设置")
        }

        MouseArea{
            anchors.fill: parent

            onPressed: {
                parent.color = "#ffff00"
            }

            onReleased: {
                parent.color = "#ff7f50"
                advanceSettingWindow.visible = false
                materialRackParameter.visible = true
            }
        }
    }


    Rectangle{          // 位置补偿设置界面 - 切换按钮
        anchors.horizontalCenter: backGround.horizontalCenter
        anchors.top: parent.top
        anchors.topMargin: 700
        width: 400
        height: 120
        radius: 10
        border.width: 1
        border.color: "#F0F8FF"
        color: "#ff7f50"

        Text{
            anchors.centerIn: parent
            font.pixelSize: 50
            font.bold: true
            text:qsTr("位置补偿设置")
        }

        MouseArea{
            anchors.fill: parent

            onPressed: {
                parent.color = "#ffff00"
            }

            onReleased: {
                parent.color = "#ff7f50"
                advanceSettingWindow.visible = false
                locationCompensateSetting.visible = true
            }
        }
    }


    Rectangle{          // 更改密码界面 - 切换按钮
        anchors.horizontalCenter: backGround.horizontalCenter
        anchors.top: parent.top
        anchors.topMargin: 1000
        width: 400
        height: 120
        radius: 10
        border.width: 1
        border.color: "#F0F8FF"
        color: "#ff7f50"
        visible: false

        Text{
            anchors.centerIn: parent
            font.pixelSize: 50
            font.bold: true
            text:qsTr("更改密码")
        }

        MouseArea{
            anchors.fill: parent

            onPressed: {
                parent.color = "#ffff00"
            }

            onReleased: {
                parent.color = "#ff7f50"
                advanceSettingWindow.visible = false
                changePasswdWindow.visible = true
            }
        }
    }

    Rectangle{          // 配置界面 - 切换按钮
        anchors.horizontalCenter: backGround.horizontalCenter
        anchors.top: parent.top
        anchors.topMargin: 1300
        width: 400
        height: 120
        radius: 10
        border.width: 1
        border.color: "#F0F8FF"
        color: "#ff7f50"

        Text{
            anchors.centerIn: parent
            font.pixelSize: 50
            font.bold: true
            text:qsTr("设备配置")
        }

        MouseArea{
            anchors.fill: parent

            onPressed: {
                parent.color = "#ffff00"
            }

            onReleased: {
                parent.color = "#ff7f50"
                advanceSettingWindow.visible = false
                deviceLayoutWindow.visible = true
            }
        }
    }




}
